package com.itgungnir.diyshuo.activity.load_activity;

import android.app.Activity;
import android.content.Context;
import android.content.Intent;

/**
 * LoadActivity中MVP架构的Model层
 */
public class LoadModel implements LoadContract.Model {

    @Override
    public void goToMain(Context context, Class activity) {
        Intent intent = new Intent(context, activity);
        context.startActivity(intent);
        ((Activity) context).finish();
    }
}